set(DERELICT_SRCS
	sdl/active.d
	sdl/cpuinfo.d
	sdl/joystick.d
	sdl/mouse.d
	sdl/sdlversion.d
	sdl/types.d
	sdl/audio.d
	sdl/endian.d
	sdl/keyboard.d
	sdl/mutex.d
	sdl/syswm.d
	sdl/video.d
	sdl/byteorder.d
	sdl/error.d
	sdl/keysym.d
	sdl/rwops.d
	sdl/thread.d
	sdl/cdrom.d
	sdl/events.d
	sdl/loadso.d
	sdl/sdl.d
	sdl/timer.d
	sdl/image.d
	sdl/mixer.d
	sdl/ttf.d
	util/exception.d
	util/loader.d
	util/wintypes.d
	util/wrapper.d
)

add_library(derelict ${DERELICT_SRCS})
target_link_libraries(derelict dl)
